//
//  TGLEEAlert..h
//
//  Created by Dean on 2018/5/24.
//  Copyright © 2018年 Dean. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LEEAlert.h"

@interface TGLEEAlert : NSObject
+(instancetype)shareInstance;

/**
 message:灰色内容
 cancelTitle:灰色字体
 sureTitle:黄色字体
 */
+ (void)alertYelloMessage:(NSString *)message cancelTitle:(NSString*)cancelTitle sureTitle:(NSString*)sureTitle  click:(void(^)(NSInteger index))clickBlock clickBackgroundClose:(BOOL)flag;



/**
 message:协议弹窗,文字内容较多可以进行滑动
 cancelTitle:灰色字体
 sureTitle:红色字体
 */

+ (void)alertAgreementSuccessClick:(void(^)(void))clickBlock;


/**
 message:黑色内容
 按钮:只有一个黑色"确定"按钮
 */

+ (void)alertSuccess:(NSString *)message click:(void(^)(void))clickBlock;


/**
 message:附带图片
 cancel:黑色字体按钮
 确定按钮:自带的蓝色字体"确定"按钮
 */
+ (void)alertTipImage:(NSString *)message cancel:(NSString*)cancel  click:(void(^)(NSInteger index))clickBlock;



/**
 message:黑色内容
 cancelTitle:灰色字体
 sureTitle:红色字体
 clickBackgroundClose:单击背景可以取消弹框
 */
+ (void)alertMessage:(NSString *)message cancelTitle:(NSString*)cancelTitle sureTitle:(NSString*)sureTitle  click:(void(^)(NSInteger index))clickBlock clickBackgroundClose:(BOOL)flag;

+ (LEEAlertConfig *)alertTitle:(NSString*)title message:(NSString *)message cancelTitle:(NSString*)cancelTitle sureTitle:(NSString*)sureTitle  click:(void(^)(NSInteger index))clickBlock;
+ (LEEAlertConfig *)alertTitle:(NSString*)title message:(NSString *)message cancelTitle:(NSString*)cancelTitle sureTitle:(NSString*)sureTitle  clickBackgroundClose:(BOOL)flag click:(void(^)(NSInteger index))clickBlock ;


/**
 message:黑色内容
 cancelTitle:灰色字体
 sureTitle:红色字体
 */
+ (void)alertMessage:(NSString *)message cancelTitle:(NSString*)cancelTitle sureTitle:(NSString*)sureTitle  click:(void(^)(NSInteger index))clickBlock;



/**
 message:黑色内容
 sureTitle:红色按钮(只有一个按钮)
 */
+ (void)alertMessage:(NSString *)message sureTitle:(NSString*)sureTitle  click:(void(^)(NSInteger index))clickBlock;




/**
 title:标题
 message:黑色内容
 cancelTitle:灰色字体
 sureTitle:红色字体
 */
+ (void)alertTitle:(NSString *)title message:(NSString *)message sureTitle:(NSString*)sureTitle  click:(void(^)(NSInteger index))clickBlock;




/**
 
 底部弹框(类似sheet)
 message:未展示
 cancelTitle:最下面的按钮(蓝色)==>和多个按钮之间有间隔
 buttons:多个按钮竖着排列(蓝色)
 */
+ (void)actionMessage:(NSString *)message cancelTitle:(NSString*)cancelTitle buttons:(NSArray *)buttons  click:(void(^)(NSInteger index))clickBlock;

/**
 title:标题
 msg:内容
 按钮:自带一个红色"确定:按钮
 */
+(void)alertTitle:(NSString *)title message:(NSString *)msg;


/**
 title:标题
 after:N秒以后自带消失
 没有任何按钮
 */
+ (void)alertTitle:(NSString *)title after:(NSInteger)after;




/// 底部弹框(类似sheet)
/// @param title title
/// @param buttons 多个按钮(黑色)
/// @param isHaveCancleAction 是否有取消按钮
/// @param clickBlock clickBlock
+(void)actionSheetTitle:(NSString *)title buttons:(NSArray *)buttons isHaveCancleAction:(BOOL)isHaveCancleAction click:(void(^)(NSInteger index))clickBlock;


/**
 底部弹框(类似sheet)
 message:未展示
 cancelTitle:最下面的按钮(蓝色)==>和多个按钮之间有间隔
 buttons:多个按钮竖着排列(蓝色)
 */
+(void)actionSheetTitle:(NSString *)title
                buttons:(NSArray *)buttons
     isHaveCancleAction:(BOOL)isHaveCancleAction
canClickBackgroundClose:(BOOL)canClickBackgroundClose
                  click:(void(^)(NSInteger index))clickBlock;


/**
 底部弹框(类似sheet)
 buttons:多个按钮(黑色)
 取消:自带一个"取消"按钮,和多个按钮之间没有间隔
 */
+(void)actionSheetButtons:(NSArray *)buttons click:(void(^)(NSInteger index))clickBlock;


//创建客户弹窗
/**
 底部弹框(类似sheet)
 第一栏:个人客户(黑色字体)
 第二栏:企业客户(黑色字体)
 第三栏:取消(黑色字体)
 */
+(void)workBenchCustomerAddActionClick:(void(^)(NSInteger index))clickBlock;



//创建客户第一步手机号码校验结果弹窗---客户已存在，但未认证
/**
 标题:客户已经存在
 内容:当前人员已存在,你可查看客户信息
 三个按钮并列排布:取消按钮,直接同步按钮,红色确定按钮
 */
+(void)workBenchCreateCustomUnAuthActionClick:(void(^)(NSInteger index))clickBlock;




//创建拜访弹窗
/**
 底部弹框(类似sheet)
 title:标题(灰色)
 第一栏:陌拜
 第二栏:客户拜访
 第三栏:商机拜访
 取消:黑色,跟按钮之间没有间隔
 */
+(void)workBenchVisitAddActionTitle:(NSString *)title
                              click:(void(^)(NSInteger index))clickBlock;




//创建拜访详情中选择详细结果弹窗
/**
 底部弹框(类似sheet)
 title:标题(灰色)
 第一栏:现在存在用车意愿
 第二栏:需继续跟进
 第三栏:未来存在用车意愿
 取消:黑色,跟按钮之间没有间隔
 */
+(void)workBenchVisitDetailChooseResultActionClick:(void(^)(NSInteger index))clickBlock;




//创建拜访详情中商机拜访装填选择弹窗
/**
 底部弹框(类似sheet)
 title:标题(灰色)
 第一栏:固定内容
 第二栏:固定内容
 第三栏:固定内容
 取消:黑色,跟按钮之间没有间隔
 */
+(void)workBenchVisitDetailChooseOpportunityStateActionClick:(void(^)(NSInteger index))clickBlock;




//创建拜访详情中拜访终止弹窗
/**
 1.输入框格式textView
 取消:灰色按钮
 确定:红色按钮
 */
+(void)workBenchVisitDetailStopActionClick:(void(^)(NSString *text))clickBlock;



/**
 1.输入框格式textView
 headTitle:标题
 placeholder:textView占位符内容
 取消:灰色按钮
 确定:红色按钮
 
 */

+(void)textViewPatternHeadTitle:(NSString*)headTitle placeholder:(NSString*)placeholder click:(void(^)(NSInteger index,NSString *text))clickBlock;

/**
 1.输入框格式textView
 headTitle:标题
 placeholder:textView占位符内容
 第一个按钮:灰色按钮
 第二个按钮:红色按钮
 */

+(void)textViewPatternHeadTitle:(NSString*)headTitle placeholder:(NSString*)placeholder cancelBtnStr:(NSString*)cancelBtnStr sureBtnStr:(NSString*)sureBtnStr click:(void(^)(NSInteger index,NSString *text))clickBlock;

/**
 1.输入框格式textField
 headTitle:标题
 placeholder:textView占位符内容==>键盘是数字格式
 取消:灰色按钮
 确定:红色按钮
 
 */
+(void)textFieldNumPatternHeadTitle:(NSString*)headTitle placeholder:(NSString*)placeholder click:(void(^)(NSString *text))clickBlock;


/**
 2.输入框格式textField
 headTitle:标题
 oneContent:第一个内容
 twoContent:第二个描述内容
 placeholder:textView占位符内容==>键盘是数字格式
 取消:灰色按钮
 确定:红色按钮
 
 */
+(void)textFieldTwoContentNumPatternHeadTitle:(NSString*)headTitle oneContent:(NSString*)oneContent twoContent:(NSString*)twoContent placeholder:(NSString*)placeholder delegate:(id<UITextFieldDelegate>)delegate click:(void(^)(NSInteger index,NSString *text,LEEAction*btn))clickBlock;

//创建清洗弹窗
/**
 底部弹框(类似sheet)
 title:标题(灰色)
 第一栏:外协清洗
 第二栏:内部清洗
 取消:黑色,跟按钮之间没有间隔
 */
+(void)workCleanKindAddActionTitle:(NSString *)title
                              click:(void(^)(NSInteger index))clickBlock;



+(void)alertTextViewWithTitle:(NSString *)title placeHoder:(NSString *)placeHoder actionClick:(void(^)(NSString *text))clickBlock;


/**
 内容:用户协议固定形式
 不同意:灰色按钮
 同意:红色按钮
 */
+ (void)alertReigsterAgreementSuccessClick:(void(^)(void))clickBlock;

+ (LEEAlertConfig *)alertTitle:(NSString*)title messageAttributed:(NSAttributedString *)messageAttributed cancelTitle:(NSString*)cancelTitle sureTitle:(NSString*)sureTitle  clickBackgroundClose:(BOOL)flag click:(void(^)(NSInteger index))clickBlock;




// Event alert
// 处置提交提交成功
+ (void)eventAlertTitle:(NSString*)title message:(NSString *)message cancelTitle:(NSString*)cancelTitle sureTitle:(NSString*)sureTitle  clickBackgroundClose:(BOOL)flag click:(void(^)(NSInteger index))clickBlock;
// 审核通过
+ (void)eventAlertTipImage:(NSString *)imgName andMessage:(NSString *)message cancel:(NSString*)cancel  click:(void(^)(NSInteger index))clickBlock;



+ (void)alertRejectWithBlock:(void(^)(NSString *reason))block;
@end
